<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs for page fct.inc.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="file-name">/include/fct.inc.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Fonctions pour l'application GSB</p>
	<ul class="tags">
				<li><span class="field">author:</span> Cheri Bibi</li>
				<li><span class="field">version:</span> 1.0</li>
			</ul>
		
			</div>
</div>
		

	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functionajouterErreur" id="functionajouterErreur"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">ajouterErreur</span> (line <span class="line-number">183</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Ajoute le libellé d'une erreur au tableau des erreurs</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			ajouterErreur
		</span>
					(<span class="var-type">$msg</span>&nbsp;<span class="var-name">$msg</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$msg</span>
				<span class="var-name">$msg</span><span class="var-description">: : le libellé de l'erreur</span>			</li>
				</ul>
		
	
</div>
<a name="functionconnecter" id="functionconnecter"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">connecter</span> (line <span class="line-number">23</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Enregistre dans une variable session les infos d'un utilisateur</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			connecter
		</span>
					(<span class="var-type">$id</span>&nbsp;<span class="var-name">$id</span>, <span class="var-type">$nom</span>&nbsp;<span class="var-name">$nom</span>, <span class="var-type">$prenom</span>&nbsp;<span class="var-name">$prenom</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$id</span>
				<span class="var-name">$id</span>			</li>
					<li>
				<span class="var-type">$nom</span>
				<span class="var-name">$nom</span>			</li>
					<li>
				<span class="var-type">$prenom</span>
				<span class="var-name">$prenom</span>			</li>
				</ul>
		
	
</div>
<a name="functiondateAnglaisVersFrancais" id="functiondateAnglaisVersFrancais"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">dateAnglaisVersFrancais</span> (line <span class="line-number">50</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Transforme une date au format format anglais aaaa-mm-jj vers le format français jj/mm/aaaa</p>
	<ul class="tags">
				<li><span class="field">return:</span> date au format format français jj/mm/aaaa</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">la</span>
		<span class="method-name">
			dateAnglaisVersFrancais
		</span>
					(<span class="var-type">$madate</span>&nbsp;<span class="var-name">$maDate</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$madate</span>
				<span class="var-name">$maDate</span><span class="var-description">: au format  aaaa-mm-jj</span>			</li>
				</ul>
		
	
</div>
<a name="functiondateFrancaisVersAnglais" id="functiondateFrancaisVersAnglais"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">dateFrancaisVersAnglais</span> (line <span class="line-number">40</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Transforme une date au format français jj/mm/aaaa vers le format anglais aaaa-mm-jj</p>
	<ul class="tags">
				<li><span class="field">return:</span> date au format anglais aaaa-mm-jj</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">la</span>
		<span class="method-name">
			dateFrancaisVersAnglais
		</span>
					(<span class="var-type">$madate</span>&nbsp;<span class="var-name">$maDate</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$madate</span>
				<span class="var-name">$maDate</span><span class="var-description">: au format  jj/mm/aaaa</span>			</li>
				</ul>
		
	
</div>
<a name="functiondeconnecter" id="functiondeconnecter"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">deconnecter</span> (line <span class="line-number">31</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Détruit la session active</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			deconnecter
		</span>
				()
			</div>

		
	
</div>
<a name="functionestConnecte" id="functionestConnecte"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">estConnecte</span> (line <span class="line-number">13</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Teste si un quelconque utilisateur est connecté</p>
	<ul class="tags">
				<li><span class="field">return:</span> ou faux</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">vrai</span>
		<span class="method-name">
			estConnecte
		</span>
				()
			</div>

		
	
</div>
<a name="functionestDateDepassee" id="functionestDateDepassee"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">estDateDepassee</span> (line <span class="line-number">102</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Vérifie si une date est inférieure d'un an à la date actuelle</p>
	<ul class="tags">
				<li><span class="field">return:</span> ou faux</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">vrai</span>
		<span class="method-name">
			estDateDepassee
		</span>
					(<span class="var-type">$dateTestee</span>&nbsp;<span class="var-name">$dateTestee</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$dateTestee</span>
				<span class="var-name">$dateTestee</span>			</li>
				</ul>
		
	
</div>
<a name="functionestDateValide" id="functionestDateValide"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">estDateValide</span> (line <span class="line-number">116</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Vérifie la validité du format d'une date française jj/mm/aaaa</p>
	<ul class="tags">
				<li><span class="field">return:</span> ou faux</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">vrai</span>
		<span class="method-name">
			estDateValide
		</span>
					(<span class="var-type">$date</span>&nbsp;<span class="var-name">$date</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$date</span>
				<span class="var-name">$date</span>			</li>
				</ul>
		
	
</div>
<a name="functionestEntierPositif" id="functionestEntierPositif"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">estEntierPositif</span> (line <span class="line-number">76</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Indique si une valeur est un entier positif ou nul</p>
	<ul class="tags">
				<li><span class="field">return:</span> ou faux</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">vrai</span>
		<span class="method-name">
			estEntierPositif
		</span>
					(<span class="var-type">$valeur</span>&nbsp;<span class="var-name">$valeur</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$valeur</span>
				<span class="var-name">$valeur</span>			</li>
				</ul>
		
	
</div>
<a name="functionestTableauEntiers" id="functionestTableauEntiers"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">estTableauEntiers</span> (line <span class="line-number">87</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Indique si un tableau de valeurs est constitué d'entiers positifs ou nuls</p>
	<ul class="tags">
				<li><span class="field">return:</span> ou faux</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">vrai</span>
		<span class="method-name">
			estTableauEntiers
		</span>
					(<span class="var-type">$tabEntiers</span>&nbsp;<span class="var-name">$tabEntiers</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$tabEntiers</span>
				<span class="var-name">$tabEntiers</span><span class="var-description">: : le tableau</span>			</li>
				</ul>
		
	
</div>
<a name="functiongetMois" id="functiongetMois"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">getMois</span> (line <span class="line-number">61</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">retourne le mois au format aaaamm selon le jour dans le mois</p>
	<ul class="tags">
				<li><span class="field">return:</span> mois au format aaaamm</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">le</span>
		<span class="method-name">
			getMois
		</span>
					(<span class="var-type">$date</span>&nbsp;<span class="var-name">$date</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$date</span>
				<span class="var-name">$date</span><span class="var-description">: au format  jj/mm/aaaa</span>			</li>
				</ul>
		
	
</div>
<a name="functionlesQteFraisValides" id="functionlesQteFraisValides"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">lesQteFraisValides</span> (line <span class="line-number">141</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Vérifie que le tableau de frais ne contient que des valeurs numériques</p>
	<ul class="tags">
				<li><span class="field">return:</span> ou faux</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">vrai</span>
		<span class="method-name">
			lesQteFraisValides
		</span>
					(<span class="var-type">$lesFrais</span>&nbsp;<span class="var-name">$lesFrais</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$lesFrais</span>
				<span class="var-name">$lesFrais</span>			</li>
				</ul>
		
	
</div>
<a name="functionnbErreurs" id="functionnbErreurs"><!-- --></a>
<div class="evenrow">
	
	<div>
		<span class="method-title">nbErreurs</span> (line <span class="line-number">194</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Retoune le nombre de lignes du tableau des erreurs</p>
	<ul class="tags">
				<li><span class="field">return:</span> nombre d'erreurs</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">le</span>
		<span class="method-name">
			nbErreurs
		</span>
				()
			</div>

		
	
</div>
<a name="functionvalideInfosFrais" id="functionvalideInfosFrais"><!-- --></a>
<div class="oddrow">
	
	<div>
		<span class="method-title">valideInfosFrais</span> (line <span class="line-number">153</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Vérifie la validité des trois arguments : la date, le libellé du frais et le montant</p>
<p class="description"><p>des message d'erreurs sont ajoutés au tableau des erreurs</p></p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			valideInfosFrais
		</span>
					(<span class="var-type">$dateFrais</span>&nbsp;<span class="var-name">$dateFrais</span>, <span class="var-type">$libelle</span>&nbsp;<span class="var-name">$libelle</span>, <span class="var-type">$montant</span>&nbsp;<span class="var-name">$montant</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">$dateFrais</span>
				<span class="var-name">$dateFrais</span>			</li>
					<li>
				<span class="var-type">$libelle</span>
				<span class="var-name">$libelle</span>			</li>
					<li>
				<span class="var-type">$montant</span>
				<span class="var-name">$montant</span>			</li>
				</ul>
		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Thu, 12 Sep 2013 14:33:50 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>